#include <iostream>

/* Pointer */
void point_func()
{
    int age = 18;
    int *page = &age;
    *page += 2;
    std::cout << age << " " << page << std::endl;
}

/* Pointer refere */
void poinref_func()
{
    int i = 42;
    int *p;

    int *&r = p;
    r = &i;
    std::cout << r << " " << p << std::endl;

    *r = 0;
    std::cout << "i: " << i << std::endl;

}

int main()
{
    point_func();
    poinref_func();
    return 0;
}